package com.lovenote.common.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.base.common.dao.IBaseDao;
import com.base.common.service.impl.BaseServiceImpl;
import com.lovenote.common.dao.INoteDao;
import com.lovenote.common.pojo.Note;
import com.lovenote.common.service.INoteService;

@Service("noteService")
public class NoteServiceImpl extends BaseServiceImpl<Note, Long> implements INoteService{

	private INoteDao noteDao;
	
	@Autowired
	@Qualifier("noteDao")
	@Override
	public void setBaseDao(IBaseDao<Note, Long> baseDao) {
		this.baseDao = baseDao;
		this.noteDao = (INoteDao) noteDao;
	}

}
